<!--代码逻辑和样式库-->
<script src="./edit-system.component.js"></script>
<style src="./edit-system.scss" scoped lang="scss"></style>

<template>
  <div>
    <el-dialog :visible.sync="showDialog" width="1300px" @close="closeDialog()">
      <span slot="title">
        <span class="aq-text-weight-bolder">系统设定</span>
        <i class="aq-margin-left-12 aq-margin-right-12 el-icon-arrow-right"></i>
        {{ title }}
      </span>
      <el-form ref="dataForm" :rules="editRules" :model="editForm">
        <el-row :gutter="20">
          <el-col :span="6">
            <el-form-item prop="password">
              <div><span class="aq-text-color-danger">*</span>平台初始密码<span class="aq-search-text">请填写初始平台登录密码</span></div>
              <el-input ref="password" :type="passwordType" v-model="editForm.password" placeholder="请输入登录密码" />
              <span class="show-pwd" @click="showPwd">
                <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
              </span>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" :loading="loading" @click="save()">保存</el-button>
        <el-button @click="closeDialog()">关闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>
